    <!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('页面信息')" />
    <th:block th:include="include :: bootstrap-select-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-interface-edit" th:object="${productInfo}">
            <input name="id" th:field="*{id}" class="form-control" type="hidden" />
            <h4 class="form-header h4">产品信息</h4>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">产品名称：</label>
                <div class="col-sm-8">
                    <input name="productName" th:field="*{productName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">产品说明：</label>
                <div class="col-sm-8">
                    <textarea name="productDescription" class="form-control">[[*{productDescription}]]</textarea>
                </div>
            </div>

            <h4 class="form-header h4">页面信息</h4>
            <div class="row">
                <div class="col-sm-12">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="bootstrap-tree-table"></table>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: bootstrap-select-js" />
    <script th:inline="javascript">
        var isModuleAggregationDatas = [[${@dict.getType('sys_yes_no')}]];
        var isRaskDatas = [[${@dict.getType('sys_yes_no')}]];
        var terminalTypeDatas = [[${@dict.getType('terminalType')}]];
        var prefix = ctx + "product/productInfo";
        $(function() {
            var options = {
                url: prefix + "/pageList?id="+$("#id").val(),
                pagination: false,
                showSearch: false,
                showRefresh: false,
                showToggle: false,
                showColumns: false,
                code: "id",
                parentCode: "parentId",
                expandColumn: "1",
                uniqueId: "id",
                columns: [{
                    field: 'selectItem',
                    radio: true
                }, {
                    field: 'pageName',
                    title: '页面名称',
                    align: 'left'
                },
                    {
                        field: 'pageDescription',
                        title: '页面描述',
                        align: 'left'
                    },
                    {
                        field: 'isModuleAggregation',
                        title: '是否模块聚合页',
                        align: 'left',
                        formatter: function(value, row, index) {
                            return $.table.selectDictLabel(isModuleAggregationDatas, value);
                        }
                    },
                    {
                        field: 'isRask',
                        title: '是否风险点',
                        align: 'left',
                        formatter: function(value, row, index) {
                            return $.table.selectDictLabel(isRaskDatas, value);
                        }
                    },
                    {
                        field: 'terminalType',
                        title: '终端类型',
                        align: 'left',
                        formatter: function(value, row, index) {
                            return $.table.selectDictLabel(terminalTypeDatas, value);
                        }
                    },
                    {
                        field: 'categoryName',
                        title: '分类名称',
                        align: 'left'
                    }]
            };
            $.treeTable.init(options);
        });
    </script>
</body>
</html>